FROM hub.c.163.com/public/nodejs:5.7.0

# Create app directory
RUN mkdir -p /home/Service
WORKDIR /home/Service

# Bundle app source
COPY package.json /home/Service/package.json
COPY server.js /home/Service/server.js

### WARN: installing cnpm make size bigger
RUN npm install cnpm -g --registry=https://registry.npm.taobao.org
RUN cnpm install --registry=https://registry.npm.taobao.org && rm -f package.json
RUN cnpm install

# RUN npm install

EXPOSE 8888
CMD [ "npm", "start" ]
